Ext.onReady(function() {
	userMgrBtn = new Ext.create('Ext.button.Button',{
		text: str_usrmgr_usrmgr,
		iconCls: 'icon-edit-user',
		pressed: false,
        enableToggle: true,
		listeners:{
			click: function(){
				if(userGridWin.isHidden()){
					userGridWin.show();
				}
				else {
					userGridWin.hide();
				}
			}
		}
	});
	
	userGroupMgrBtn = new Ext.create('Ext.button.Button',{
		text: str_grpmgr_ugmanager,
		iconCls: 'icon-group',
		pressed: false,
        enableToggle: true,
        listeners:{
			click: function(){
				if(userGroupWin.isHidden()){
					userGroupWin.show();
				}
				else {
					userGroupWin.hide();
				}
			}
		}
	});
	
	menuMgrBtn = new Ext.create('Ext.button.Button',{
		text: str_menumgr_menumgr,
		iconCls: 'icon-plugin',
		pressed: false,
        enableToggle: true,
        listeners:{
			click: function(){
				if(menuMgrWin.isHidden()){
					menuMgrWin.show();
				}
				else {
					menuMgrWin.hide();
				}
			}
		}
	});
	
	var panel = Ext.create('Ext.panel.Panel',{
		region: 'center',
		dockedItems: [
		    {
				xtype: 'toolbar',
				dock: 'top',
				items:[
                    userMgrBtn,'-',userGroupMgrBtn,'-',menuMgrBtn
				]
		    }
		]
	});
	
	var view = Ext.create('Ext.container.Viewport', {
		layout : 'border',
		renderTo : Ext.getBody(),
		items : [panel]
	});
});